package com.example.interceptor;

import com.example.passport.entity.User;

public class UserContext {

    private static final ThreadLocal<User> current = new ThreadLocal<>();

    public static void setUser(User user) {
        current.set(user);
    }

    public static User getUser() {
        return current.get();
    }
}
